<?php
/**
 * Created by PhpStorm.
 * Date: 2017/3/31
 * Time: 14:02
 */

namespace App\Http\Controllers\VipChannel\Fans\Transformers;

class FansDataInfoTransformer
{
    public function transform($item)
    {
        return [
            'date' => $item->date,//日期
            'phone'=>$item->phone,
            'distribution_channel_id'=>$item->distribution_channel_id,
            'new_subscribe_num' => $item->new_subscribe_num, //新关粉丝数
            'one_day_recharge' => $item->one_day_recharge, //24小时充值
            'three_days_recharge' => $item->three_days_recharge,//72小时充值
            'seven_days_recharge' => $item->seven_days_recharge,//7天充值
            'thirty_days_recharge' => $item->thirty_days_recharge,//30天充值
            'thirty_days_recharge_arpu' => $item->thirty_days_recharge_arpu,//30天arpu值
            'sixty_days_recharge' => $item->sixty_days_recharge,//60天充值
            'sixty_days_recharge_arpu' => $item->sixty_days_recharge_arpu,//60天arpu值
            'new_sub_user_arpu' => $item->new_sub_user_arpu,//新关arpu值
            'actual_subscribe_user_arpu' => $item->actual_subscribe_user_arpu,//净关arpu值
            'new_sub_user_recharge_amount' => $item->new_sub_user_recharge_amount,//新关粉丝累计充值
            'new_sub_recharge_num' => $item->new_sub_recharge_num,//新关付费人数
            'sub_user_orders_num' => $item->sub_user_orders_num,//付费笔数
            'new_sub_pay_rate' => $item->new_sub_pay_rate //新关付费率
        ];
    }
}